<template>
  <div>
    <!-- 展示搜索提示列表 -->
    <van-list v-model="loading" :finished="finished" finished-text="没有更多了">
      <van-cell v-for="item in searchTipsArr.data" :key="item" :title="item" 
      @click="getData(item)"/>
    </van-list>
  </div>
</template>

<script>
export default {
  data() {
    return {
      loading: false,
      finished: true,
    };
    
  },
  methods:{
    getData(val){
      this.$emit('list',val)
    }
  },
  props: ["searchTipsArr"]
};
</script>
 
<style lang = "less" scoped>
</style>